package gof.factory;

/**
 * TODO
 * 2020-11-05 16:39
 */
public abstract class PizzaStore {
    public final Pizza orderPizza(String type){
        Pizza pizza = createPizza(type);
        pizza.bake();
        pizza.cut();
        return pizza;
    }

    public abstract Pizza createPizza(String type);
}
